package cn.xp.service;

import cn.xp.domain.Building;
import cn.xp.dto.BuilDDto;
import cn.xp.dto.BuilDTypeDto;
import cn.xp.util.JSONResult;

public interface IBuildingService {

    Building findOne(Long id);

    /**
     * 批量新建楼层信息
     * @param buildings
     * @return
     */
    JSONResult<Building> addFloor(Building[] buildings);

    /**
     * 根据楼宇id查询设备
     * @param id
     * @return
     */
    JSONResult<BuilDDto> getDeviceListByBuildId(Long id);

    JSONResult<BuilDTypeDto> getDeviceListByDeviceType(Long id);
}
